-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more config parameters to HTTPClientSettings to be used by multiple http-based exporters #4188
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd avoid doing this logic in tests (same as it would be avoided in non test code) https://github.com/open-telemetry/opentelemetry-collector/pull/4188/files#diff-ae54372cbf36c6ca3ce262dc39d7db67e1d71bba20c8838a9906bc123133c8b6R114
@Aneurysm9 Can you please help with the approval of this PR? |
please fix linter issues |
@dmitryax fixed the linting issue, please review the same. |
Codecov Report
@@ Coverage Diff @@
## main #4188 +/- ##
==========================================
+ Coverage 90.68% 90.79% +0.10%
==========================================
Files 179 179
Lines 10425 10424 -1
==========================================
+ Hits 9454 9464 +10
+ Misses 755 743 -12
- Partials 216 217 +1
Continue to review full report at Codecov.
|
Probably an overkill, but all the values could be pointers, in order to keep things uniform. Likewise, only set the values IF they are explicitly set, else ignore. |
Do you mean to also have these two parameters(MaxIdleConnsPerHost, MaxConnsPerHost) as pointers variables? |
@carlosalberto Could you plz confirm the above? |
That's correct (and sorry for the delay!) @bogdandrutu what do you think? |
/easycla |
…HTTPClientSettings
Add more config parameters to HTTPClientSettings to be used by multiple http-based exporters
Description: Added 3 more config parameters MaxIdleConns, MaxIdleConnsPerHost and IdleConnTimeout in HTTPClientSettings
Link to tracking Issue: open-telemetry/opentelemetry-collector-contrib#5432 (comment)
Testing: All test cases are passing